package com.msh.automatic.android.control.util.api

import android.os.Build
import com.alibaba.fastjson2.JSONObject
import com.msh.automatic.android.control.task.TaskLog.TaskLogStatus

object TaskApi {

    fun log(id:String,status: TaskLogStatus,message:String):Triple<String,String,JSONObject?>{
        return BaseApi.post("/d/task/log",
            mapOf(
                "id" to id,
                "status" to status,
                "message" to message,
            )
        )
    }
    fun info(id:String):Triple<String,String,JSONObject?>{
        return BaseApi.post("/d/task/info",
            mapOf(
                "id" to id
            )
        )
    }
}